package com.foreknow.demo0928;

public class Penguin extends Pet {
    public void swim() {
        System.out.println("企鹅在游泳");
    }

    @Override
    public void toHospital() {
        this.setHealth(70);
        System.out.println("企鹅在打针");
    }
}
